home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / TURB_VIS / PGX122 / PTGHELP.HLP (.txt) < prev    next >
Borland Turbo Vision Help  |  1994-02-09  |  56KB  |  770 lines

  1.  Welcome to PtGen's On-line Help
  2. PtGen, a Prototype Generator for Turbo Pascal programs, is a full featured program intended to help you to quickly produce programs, prototypes. A prototype is saved to disk in TP-unit source code format. PtGen can read such a file back for additional editting. H
  3. It's assumed that you are familiar with Turbo Pascal type helpscreens. 
  4. You can learn about the Prototype Generator by following the build-in tutorials, by using this on-line Help system and by consulting the manual. 2
  5. Choose any of the following for more information p
  6.  Product
  7. features
  8.  Machine
  9. requirements
  10.  Contacting
  11. Nederware
  12.  PtGen's
  13. hot-keys
  14.  Mouse
  15. operation
  16.  Product featurs
  17. Product features: 
  18.  build-in tutorials to become quickly
  19.     acquainted with PtGen
  20.  quickly making the most advanced menu
  21.     structures, including complete helptext
  22.     support
  23.  creating of a statusbar
  24.  comfortably creating of dialogboxes
  25.  3D TVTool support
  26.  Machine requirements
  27. What you need: 
  28.  Borland or Turbo Pascal 7.0
  29.  Turbo Vision (included with TP 7.0)
  30.  enough knowlegde of both
  31.  the TVTool package if you want to use the
  32.     3D views
  33.  Contact the author
  34. You can contact Berend de Boer from Nederware, the author of this program by using one of the following electronic addresses: Q
  35.   fidonet: 2:281/527.23
  36.   email: berend@beard.nest.nl
  37.   compuserve: 100120,3121
  38. or by regular mail: P
  39.   Nederware
  40.   c/o Berend de Boer
  41.   Burgerstaaat 22
  42.   5311 CX  GAMEREN
  43.   HOLLAND
  44.  PtGen's hot-keys
  45. Operation of PtGen is consistent throughout the program.  
  46.   Alt-F5   Pop-up local position menu for
  47.            positioning the current object
  48.   Alt-F10  Pop-up local menu
  49.   Ctrl-F7  Delete current object/item
  50.   Ctrl-F8  Edit current object/item
  51.   Ctrl-F9  Link other objects to current object
  52.   Ins      Insert an item
  53.   Del      Delete an item
  54. See also mouse
  55. operation
  56. Ptgen 
  57.  Mouse operation in PtGen
  58.   Left button    Click on background to pop up
  59.                  the local menu
  60.   Right button   Click on object to pop up a
  61.                  menu with actions you can
  62.                  apply to that object or item.
  63.                  Sometimes no menu exist and
  64.                  the right button click goes
  65.                  directly into the edit mode
  66.                  for this object.
  67. See also hot
  68. Ptgen 
  69.  TVTool
  70. The TVTool 2.0 package contains among others 3D widgets for Turbo Vision. J
  71. If you have TVTool you can use PtGen to design complete 3D dialog boxes. q
  72. The author of TVTool is Richard Hansen and he can be reached at compuserve as 70242,3367 or by regular mail at: 3
  73.   PO Box 18571
  74.   Saint Paul, MN  55118-0571
  75.   USA
  76.  File  (Alt-F)
  77.  The File menu offers choices for opening and
  78.  loading existing files, creating new files,
  79.  saving files, and exiting PtGen.
  80.  Edit  (Alt-E)
  81. Edit a new or a loaded application. You may also press Edit (Ctrl-F8). 
  82.  App  (Alt-A)
  83. Set application options like application name, language (dutch or english), if it uses help, etc. 
  84.  File
  85. Open     (F3)
  86. Load a previously saved application. Q
  87. PtGen only accepts source code that conforms entirely to the source it creates. [
  88. You can edit the source code, but be carefull not to introduce not-PtGen compatible code. 
  89.  File
  90. New creates a new application. You are prompted to specify characteristics of this new application. 
  91.  File
  92. Save     (F2)
  93. The Save command saves the application to disk. 
  94. If the file has no name, PtGen opens the Save File As dialog box so you can rename the file and save it in a different directory or on a different drive. 
  95.  File
  96. Exit     (Alt-X)
  97. The Exit command exits PtGen, removes it from memory, and returns you to DOS. `
  98. If you've modified a source file without saving it, PtGen prompts you to do so before exiting. 
  99. Enter the name of the application. Omit the proceeding 'T' (convention of Turbo Pascal) as PtGen will add a T to every objectname when writing the source file. T
  100. The name you enter will become the name of the application object you will create. 
  101.  Default language
  102. When you choose the default language option (the default) you use DEFAULT.TVR and DEFAULT.TXT. 
  103. Copy ENGLISH.TVR or DUTCH.TVR to DEFAULT.TVR when you create only or mostly english or dutch applications. In this manner you don't have to change this option everytime you create a new application. 
  104. You can use the default language option to use a different language
  105. too. Create a DEFAULT.TVR and DEFAULT.TXT containing the strings and texts in the language you wish. 
  106.  English language
  107. Use the english language for this application. t
  108. The file ENGLISH.TVR will be used as the base file for STRINGS.TVR, the string resource file for this application. 
  109.  Dutch language
  110. Maak gebruik van de nederlandse taal voor deze applicatie. q
  111. De file DUTCH.TVR zal worden gebruikt als basis voor STRINGS.TVR, de string resource file voor deze applicatie. 
  112.  Settings
  113. Change dialog box settings like its name and title. 
  114.  Listviewer
  115. Place a dummy listviewer on this dialog box. The created code can be changed by pressing the code button in the listviewer edit dialog  box. 
  116.  Spinbutton
  117. Place a spinbutton (one line radiobutton) on its owner. 
  118.  Radiobuttons
  119. Place a radiobutton view on its owner. 
  120.  Checkboxes
  121. Place a Checkboxes view on its owner. 
  122.  Memo
  123. Place a memo view on its owner. 
  124.  Label
  125. Label an already inserted view. After you have specified the labeled text, you should select the view to be labeled. e
  126. Select that view by clicking on it with the mouse button or using Tab/Shift-Tab and pressing Enter. 
  127.  Static text
  128. Place text on its owner. 
  129.  Button
  130. Create a button yourself. 
  131.  Buttons
  132. Place a button on the current dialog box. Choose between user defined and predefined as OK or Cancel. 
  133. You are prompted to specify a string resource file (.TVR) and a identifier file (.PAS or .INC). ~
  134. The strings from in the resource file should be saved as 'Strings'. The strings are copied into the current string resource. >
  135. The identifiers are copied into the current identifier file. T
  136. In this way you can quickly merge different string resources and identifier files. 
  137.  App configuration
  138. Specify configuration settings for the application you are creating. 
  139.  Code
  140. Change some parameters of the code that will be generated for this view as its pointer type and parameters. 
  141.  Range validator
  142. A range validator checks the input the user types and restricts it to longints only which should be between the specified Min and Max value. 
  143.  Inputline
  144. Access to various inputlines, as the standard TInputLine and the PtGen TXInputLine 
  145. PtGen now supports the TbxXXXXLine inputlines. They are part of TVTool and you need TVTool to be able to compile the resulting program. 
  146.  Validator
  147. Add a validator to an already inserted inputline. You can choose between different validators.  L
  148. Select a validator, next select the inputline which needs to be validated. 
  149. Note that already existing validators are  disposed. The Validator option is meant to change the validation of an inputline or to upgrade inputlines of previous versions of PtGen. 
  150. Enter the name of the source helptext file for this application. Usually this will be something like MYHELP.TXT. K
  151. You should call TVHC to convert this file to the corresponding .HLP file. 
  152. Specify size of the editorbuffer in paragraphs (1 paragraph = 16 bytes). D
  153. Usually a value of 2 000 will suffice (16 x 2 000 = 32 000 bytes). 
  154.  (System) menu    (Alt-Spacebar)
  155. The System menu appears on the far left of the menu bar and is represented by the 
  156.  symbol. <
  157. When you pull down the 
  158.  menu, you see the system command:     
  159.   About
  160. About ProtoType Generator
  161. When you choose the About command from the 
  162.  (System) menu, a dialog box appears, showing copyright and version information. 8
  163. Press Esc, click OK, or click Cancel to close the box. 
  164.  File
  165. Save As...
  166. Give a new name to the source file for the current application. Before writing, PtGen checks if a file with such a name exist. If so, you're prompted if you want to overwrite it. When you choose Yes, the previous file is saved with the .BAK extension. If you choose No, you're prompted for another filename. 
  167.  Tutorial  (Alt-T)
  168. PtGen contains three online tutorials: H
  169.  Creating
  170. menubars
  171.  Creating
  172. statuslines
  173.  Creating
  174. dialogboxes
  175. They quickly and conveniently learn you to work with PtGen. Choose the Introduction first to learn the basics of working with PtGen. 
  176.  Tutorial
  177. Introduction
  178. Introduction to working with PtGen for mouse and keyboard users. You learn about PtGen's mouse buttons and about its hotkeys. 0
  179. You are introduced to some basic concepts too. 
  180.  Tutorial
  181. Statusline
  182. Learn conveniently to create statuslines in PtGen. 
  183. This tutorial is the same as found in the manual except that the manual contains a bit more explanation and discusses some more advanced concepts. 
  184.  Tutorial
  185. MenuBar
  186. Learn conveniently to create menubars in PtGen. 
  187. This tutorial is the same as found in the manual except that the manual contains a bit more explanation and discusses some more advanced concepts. 
  188.  Tutorial
  189. Dialogbox
  190. Learn conveniently to create dialogboxes in PtGen.  
  191. This tutorial is the same as found in the manual except that the manual contains a bit more explanation and discusses some more advanced 
  192. Total number of columns for this TListViewer object. 
  193.  Reporter
  194. Not included in this version of PtGen. 
  195.  Schema creation
  196. Create a semantic abstraction hierarchie. 
  197. Not included with this version of PtGen. 
  198.  Helptext
  199. Add, edit or delete helptexts. You can change the statusline hints as well as the helpwindow text. G
  200. You can also use it to change the constant values of the hcConstants. 
  201.  Objects
  202. Display all the objects which are created for this application. You can add, edit or delete objects. 
  203.  Statusline
  204. Edit the statusline. 
  205.  Validator error text
  206. Specify the resource string identifier which contains the custom warning string for this validator. 
  207. Specify only an identifier if you want to override the default. If you want to change the default message itself, change ENGLISH.TVR (or any of the other string resource files like DUTCH.TVR). 
  208.  Dialog settings
  209. Change dialog settings like its name and title. You can specify the help text too which should appear when the Help button (if inserted) is pressed. 
  210.  Button
  211. In this dialog box you can define the characteristics of a button. *
  212. All button flags (bfXXXX) are supported. 
  213.  Lefthand
  214. Specify the local variable the view is assigned to. 
  215. Before the view is inserted into its owner it is first assigned to a variable. You can use this variable to acces the view later on. 
  216.  Parameters
  217. Specify the parameters for this view. For some views you can only specify the extra parameters. The fixed parameters are not visible. h
  218. A fixed parameter is for example the Bounds of a view. This is always needed so you can't change that. 
  219.  Pointer name
  220. The object type that should be allocated. For example for an inputline you can specify 
  221.   PRealInputLine
  222. PtGen will in that case not write code to insert an inputline into its owner but to insert a RealInputLine. PtGen will write something like: "
  223.   New(PRealInputLine, Init(..));
  224.  Helptext
  225. Enter the helptext which should be displayed as hint on the statusline when this item is  selected. 
  226.  Help window
  227. The help window object is meant for linking a help window to a command. @
  228. After the command is executed, a defined  help window pops up. 2
  229. The help windows are the standard help  windows. 
  230. You can insert, edit or delete objects. *
  231. * Insert an object by pressing Ins or by 
  232.   clicking on the New button.
  233. * Edit an object by selecting it and pressing -
  234.   Ctrl-F8 or by clicking on the Edit button.
  235. * Delete on object by selecting it and 5
  236.   pressing Ctrl-F7 or by clicking on the Del button.
  237. You can insert, edit or delete statusline items. -
  238. * To insert, press Ins or click on the New      
  239.   button
  240. * To edit, select the item and press Edit (
  241.   (Ctrl-F8) or click on the Edit button
  242. * To delete, select the item and press Del or 
  243.   click on the Del button
  244. Insert an item. 
  245. Delete an item. 
  246. Enter the text which will be displayed on the statusline. 
  247. Enter the keycode to generate the command which you will enter below. Valid keycodes are kbF1, kbF2, kbAltA etc. 
  248. Command to generate when keycode is pressed. 
  249. Enter the text to display for this item. Surround the hotkey with tildes (~). 
  250. Command to generate when this item is selected. This command will be listed in the interface section of the unit you create so you can use it in your programs. F
  251. TIP: if you want this menuitem to behave as a DosShell just type in: 
  252.   cmDosShell,
  253. add some helptexts (if you want) and press  Enter. 
  254. Enter the helptext which should be displayed on the statusline when this item is selected. 
  255.  hcXXXX
  256. Enter the name which will be used to refer to this particular statusline helptext and helptext window. This is useful for crossreferencing. 
  257. When no hcConstant is specified a default one is created. The default one consists of a 'H' + the value of the helpcontext. For example: H2022 or H2072. 
  258. You can modify the stringslist by clicking on the New/Edit/Del buttons or by pressing Ins, Edit (Ctrl-F8) or Del. 
  259. Enter the static text you want to display. You may enter the ^C and ^M directives by typing  first a '^' than a 'C' or 'M'. 9
  260.   ^C will center the text
  261.   ^M will go to the next line
  262. Characters lower than ascii 32 are not supported. 
  263. Enter the text for the label. Characters surrounded by tildes (~) are highlighted. 
  264. Enter the text to display on the button. You can use tildes (~) to highlight certain characters. 
  265. Command to generate when button is selected. command will be listed in the interface section of the unit you create so you can use it in your programs. 
  266.  Code dialog box
  267. This dialog box lets you change the code that will be generated for the selected subview. 
  268.  Menuitem dialog box
  269. Edit this menuitem by filling in the various fields. 7
  270. Notes: * Leave all fields empty if you want a divider 
  271.   line.
  272. * Leave the Command and Param fields empty if  
  273.   you want to create a submenu
  274.  Unitnames
  275. Insert, edit or delete units by pressing Ins, Edit (Ctrl-F8) or Del respectively. #
  276. Or press the appropriate buttons. 
  277.  Units dialog box
  278. You can insert, edit or delete the units that will appear as the last units in the implementation uses clause in the created unit. 
  279. In this manner you can `import' your views into the created code. Press the code button when you create a view (for example an inputline) to change the generated code. 
  280.  Units
  281. Specify units to be included in the implementation clause of the to be created unit. q
  282. If you make use of the user generated code you usually need to include units of your own which define the view. 
  283.  STRINGS.TVR
  284. The file STRINGS.TVR contains all strings for this application including the statusline hints. Q
  285. Using string resources internationalizing your application becomes much easier. ;
  286. Use the BBStRRes unit for easy acces to string resources. 
  287.  Cluster Dialog box
  288. Enter Cluster item string including its hint and a helptext to be shown when Help (F1) is pressed. 
  289.  HelpItems
  290. Insert, edit or delete helpitems. q
  291. You can change the identifier (hcConstant), the value of the hcConstant, the helptext and the help window text. 
  292.  Calculator
  293. Use the calculator object with your application. This is the same calculator as found in CALC.PAS which came with your Borland package. 3
  294. It should be somewhere in the examples directory. 
  295.  Center Y
  296.  Center X
  297.  Make First
  298. Make this view the first view (lowest in Z-order) of this dialog box. 
  299.  Specify next view
  300. Specify the view that should be come next after this view. Use this option to specify the Tab/ Shift-Tab path through your dialog box. 5
  301. That view becomes higher in Z-order than this view. 
  302. Enter the name of the dialog box while omitting the usually preceding 'T'. PtGen adds a 'T' when writing the source file. J
  303. This name will be exported in the interface section of the created unit. 
  304. Enter the title which will appear at the top of the dialog box. All characters, up to 30, should be supported. 
  305.  Strings  (Alt-S)
  306. Edit the string resources for this application. This string resource editor for Turbo Vision is very much like the Windows resource editor. E
  307. Strings are saved in .TVR files, identifiers in .PAS or .INC files. 
  308.  String resource files dialog box
  309. This is the string resource files main dialog. You can add string resource files, delete or edit them. g
  310. When your application is saved, one big string resource file is created with the name  'STRINGS.TRV'. 
  311.  String resources file list
  312. This is the main list of all the string resource files this application uses. z
  313. You can add, delete or edit files by pressing Ins, Del or Edit (Ctrl-F8) or by clicking on the New, Del or Edit buttons. 
  314.  [ New ] 
  315. A file dialog box will pop up to help selecting a string resource file and a identifier file. 
  316.  [ Edit ] 
  317. After choosing edit, the selected string resource file can be editted. <
  318. Strings with identifiers can be added, edited, or deleted. 
  319.  [ Delete ] 
  320. The selected string resource file is deleted from the files list. The copy on your disk is not deleted. 
  321.  Resource strings 
  322. You can add, change or delete strings in this string resource file. This file will be included in the main string resource file (STRINGS.TVR) for this application. 
  323.  Edit a resource string
  324. You can add, edit or delete strings by pressing Ins, Edit (Ctrl-F8) or Del respectively or by clicking on the New, Edit or Delete buttons after you have selected an item. d
  325. For each item you can specify the name of the constant, the value of that constant and the string. H
  326. NOTE: The value of the constant should be unique for this application. 
  327. Insert a string. You have to specify constant name, value and the string itself. 
  328. Edit a string. You can change the name of the constant, its value and the string itself. 
  329. Delete the selected string. 
  330.  Resource String
  331. You can edit the name of the constant of this string, the value of the constant and the string itself. 
  332.  Resource Constant Name
  333. Specify the constant name. This name will be put into the include file 'STRINGS.INC'. This file is created when you save your application. t
  334. For example, when you specify as name sOutOfMemory and as a value for this constant 100, the output will be: const 
  335.   sOutofMemory = 100;
  336. To discriminate between other constants and string recource constants the 's' prefix is suggested. 
  337.  Resource Constant Value
  338. Specify the constant value. This value will be put into the include file 'STRINGS.INC'. This file is created when you save your application. t
  339. For example, when you specify as name sOutOfMemory and as a value for this constant 100, the output will be: const 
  340.   sOutofMemory = 100;
  341. NOTE: Don't use values within the PtGen value range (1000..3999). All texts are stored in one string resource file so each string should be assigned a unique identifier. 
  342.  Resource string
  343. Specify the resource string itself. You can embed %d, %s or other format specifiers. /
  344. A maximum of 255 characters can be specified. 
  345.  Changes
  346. Pop up a window containing changes.doc, a  document which describes all changes/new  things for this release. 
  347.  TInputLine
  348. The TInputLine view is the normal TurboVision view. Full validator support is provided. 
  349.  Objects dialog box
  350. The objects dialog box shows all objects defined for this application. You can edit, delete or insert new objects. 
  351.  Picture validator
  352.  Real validator
  353. A real validator checks if the entered string corresponds to the TurboPascal real type. 
  354. Let the validator do the DataSize, GetData and SetData methods. 
  355.  TbxByteEdit dialog box
  356.  Procedure call
  357. Enter the name of a procedure to call.  Parameters may be included between the familiar parens. 
  358. Examples: (
  359.   foo
  360.   foo(a, b)
  361.   foo('Hello world.')
  362. Leave the semicolon out. 
  363.  File menu
  364. Insert the standard File menu using the StdFileMenuItems call at the current menu level. 
  365.  Procedure call
  366. Link a procedure to this object. After you have choosen this object, you are asked to specify a procedure name. 
  367.  Compile help file
  368. All help texts are compiled to a .hlp file. Compilation stops after the first error. 
  369.  Dialog|Open
  370. Read a previous saved single dialog. 
  371.  Dialog|Create
  372. Create a single dialog without creating a whole application. You don't have to choose File|New but can directly execute Dialog|New 
  373.  Dialog  (Alt-D)
  374. Acces to dialog only functions. No application is created. .
  375. Only a single dialog source file is created. 
  376. In this operation mode, PtGen resembles DlgDsn in the way that only dialogs can be created and written. However, you retain the full editing power of PtGen. 
  377. Use a function of a DLL in your application. 
  378. In the protected mode version of PtGen you can directly acces this function. The real mode  version can write the code to access a DLL only. 
  379.  Popup menu
  380. Create a complete popup including full helptext and statusline hint support. 
  381.  Status item dialog box
  382.  Identifier
  383. Fill in a record identifier. Initially this record identifier is equal to the label of this view. 
  384. This identifier is written in the record structure for this dialog box which can subsequently be used by GetData and SetData. 
  385.  Record identifier type
  386. Enter the record identifier type. Most of the time this type is automatically provided by the view itself, but you can override this. 
  387.  Center X
  388. Center this view horizontally within its owner's boundaries. 
  389.  Center Y
  390. Center this view vertically within its owner's boundaries. 
  391.  Create a record
  392. Create a record for this dialog box for use with GetData and SetData. $
  393. The created record is of the form: e
  394.   <dialog name>Rec = record
  395.     <identifier1> : <type1>;
  396.     <identifier2> : <type2>;
  397.     ...
  398.   end;
  399. The subviews know their types. If you have labeled the subviews their identifier will be equal to their label. You can override this default settings though. 
  400.  3D dialog box
  401. Create a three dimensional dialog box with three dimensional subviews. You need TVTool 2.0 to compile such programs. 
  402.  ValidChars
  403. Enter the set of all characters the user can type. For example to allow only numeric digits, type 
  404.   '0'..'9'
  405. To allow only uppercase characters type 
  406.   'A'..'Z'
  407.  Clone
  408. Create an almost identical copy of the current selected object. 
  409.  Picture
  410. Enter the format for the type of string the user has to enter. A picture may consist of the following characters: (note that / stands for a curlet brace) -
  411. Type of character   Character   Description 
  412.   Special                #      Accept only a digit
  413.                          ?      Accept only a letter (case-insensitive)
  414.                          &      Accept only a letter, force to uppercase
  415.                          @      Accept any character
  416.                          !      Accept any character, force to uppercase
  417.   Match                  ;      Take next character literally
  418.                          *      Repetition count
  419.                                 A number after the '*' specifies how many
  420.                                 the next character should be repeted
  421.                          []     Option
  422.                          //     Grouping operators
  423.                          ,      Set of alternatives
  424.   All others                    Taken literally
  425. Examples (from the TVTool package): %
  426. - unsigned int with optional commas 
  427.     #[#][#]*/[;,]###/
  428. - dollars, with comma and optinal dollar sign 
  429.     [$]*#./##,00/
  430. - phone number with optional area code 
  431.     [(###) ]###-####
  432. - filename (no path) with extension 
  433.     /&*7[&]/./*3[&]/
  434.  None
  435. Don't use a validator. 
  436.  Filter validator
  437. Add the TFilterValidator to this inputline. 
  438.  Range validator
  439. Add a range validator to this inputline. 
  440.  Real validator
  441. Add a real validator to this inputline to let the user input a TurboPascal real type. b
  442. The real validator is identical to the RangeValidator except that a real range can be specified. 
  443.  Picture validator
  444. Add the TPXPictureValidator to this inputline. 
  445.  TXinputLine
  446. The TXInputLine is defined in BBDLG.PAS, a unit that came with your PtGen package. P
  447. TXInputLine supports the word left and right  (Ctrl-Left and Ctrl-Right) keys. 
  448. Cut & Paste is also possible. 
  449.  voFill
  450. Fill in literal characters as the user types. 
  451.  Validate on append
  452. Set if you want to validate on append only. This option is there to save your users from some unexpected, although logical, behaviour. m
  453. An example might clarify this. Let your picture be $##.##. Let this option be on. If your user has entered  
  454.   $23.
  455. he can place the cursor on '2' and enter a 'a' so the input becomes     
  456.   $2a3.
  457. This is valid because you specified that the input should be checked on append only. If you have turned this option off, this could not happen. But, assuming the original input, if the user places his cursor on the '2' and wants to delete it, that will not be possible, because the then existing string violates the picture. The user can only delete characters in this case when he starts deleting them at the end of the input using backspace. 
  458. Your choice. 
  459.  TbxEditLine
  460. The TbxEditLine is part of TVTool. You need TVTool to compile the unit that PtGen will write. 
  461.  InputLine Dialog Box
  462.  MaxLen
  463. Specify the maximum number of characters one can type in this inputline. 
  464.  EditLine Dialog Box
  465. EditLine Dialog Box. 
  466.  Minimum allowed value for this real.
  467.  Maximum value allowed for this real.
  468.  TbxByteEdit
  469. Insert TVTool's TbxByteEdit inputline. 
  470.  TbxIntegerEdit
  471. Insert TVTool's TbxIntegerEdit inputline. 
  472.  dfRequired
  473. Field entry is required. 
  474.  dfRJustify
  475. Trim and right justify result. 
  476.  dfLJustify
  477. Trim and left justify result. 
  478.  dfTrim
  479. Remove leading and trailing spaces from result. 
  480.  Hide
  481. Typed characters are not visible on the screen, instead the HideChar (default '*') character is written of any typed character. 
  482.  dfDefaults
  483. Use default values if available. Currently (TVTools 2.00) only applicable for use with the TbxDateEdit inputline to set a specified day, month or year to the current day, month or year (if SetDateDefaults has been called). 
  484.  Mask
  485. Specify the mask to use for this inputline. the mask characters are: V
  486.   X   any character
  487.   U   any character, force to uppercase
  488.   L   any character, force to lowercase
  489.   a   alpha numeric character only
  490.   u   alpha numerIc character only, force to
  491.       uppercase
  492.   l   alpha numeric character only, force to
  493.       lowercase
  494.   #   numbers, minus, period
  495.   9   digit only
  496.   &   hexadecimal numbers
  497.   @   dates
  498. Examples: 
  499.   Date:
  500.   99/99/9999
  501.   Phone number:
  502.   (999) 999-9999 [9999]
  503.   Money:
  504.   $#####.##
  505.   Hexadecimal:
  506.   &&&&
  507.  TbxIntegerEdit dialog box
  508. The minimum should be between -32768 and 32767. 
  509. The maximum allowed value should be between -32768 and 32767. 
  510.  TbxDateEdit dialog box
  511.  Date picture
  512. In the date picture teh characters 'y', 'Y', 'm', 'M', 'd' and 'D' are used to specify the positions of the year, month and day in the input string. p
  513. Tne only editable characters in the input line will be in the positions indicated by these special characters. 
  514. Examples: $
  515.   MM/DD/YY 
  516.   mm/dd/yyyy
  517.   dd/mm/yy
  518. If dfDefault is set, missing data will be filled in using DefaultYear, DefaultMonth and DefaultDay (set these using SetDateDefaults). 
  519.  TbxDateEdit
  520. TbxDateEdit implements an input line for formatted dates. ?
  521. You need the TVTool package to compile the resulting program. 
  522.  StatusDef
  523. Insert, edit or delete a status definition. 
  524.  StatusDef dialog box
  525.  Selectable
  526. Set if view should be selectabe. 
  527.  ofValidate
  528. Set if the view should validate itself before giving up its focus. 1
  529. A view can retain the focus if it is not valid. 
  530.  ofFramed
  531. Set this option if you want the view to be framed. 
  532.  TextViewer
  533. After selecting this menu item, you are  promted for a file name. &
  534. This file will be shown in a window. 
  535.  HistoryID
  536. Type the history ID number to use for this  inputline. 
  537.  Help
  538. Enable this option if you want to use helptexts in your application. 
  539. Enabling this option will cause PtGen to put the Help directive in DEFINES.DEF which will cause the help code in PREAPP.PAS to be compiled. 
  540.  Editor
  541. Enable if you want to use the Editors unit in your application. 
  542.  Bufferend Printer
  543. Not supplied with this release. 
  544.  3D Turbo Vision
  545. Enable to support the TVTool package of Richard Hansen. TVTool lets you create Three Dimensional dialog boxes. 
  546.  HeapViewer
  547. If this option is enabled the HeapViewer from the Gadgets unit (/bp/examples/dos/tvdemo) is included in the source of this program. 
  548.  Clock
  549. If this option is enabled the Clok from the Gadgets unit (/bp/examples/dos/tvdemo) is included in the source of this program. 
  550.  Window menu
  551. Insert the standard Window menu using the StdWindowMenuItems call at the current menu level. 
  552.  Edit menu
  553. Insert the standard Edit menu using the StdEditMenuItems call at the current menu level. 
  554.  Sort menuview
  555. Sort the currently selected menuview (either the horizontal menubar or a vertical list of menu items). e
  556. Use this option when menu items cannot be  logically grouped. An alphabetical sorting is best than. 
  557.  Menu name
  558. Change the name of this menubar or popup. 
  559.  Menubar
  560. Create a new menubar object, use for example when you want multiple menubars. v
  561. Tip: if you want different 'versions' of the same main menubar, just clone the main menubar and change the new copy. 
  562.  Which help window dialog
  563. Enter the information where the to be shown help window can be found. 
  564.  Help filename
  565. Enter the help file to use. If you leave this one empty the application help file will be used. g
  566. The application help file is the one you have specified in the Application configuration  dialog box. 
  567.  hcXXXX or value
  568. Enter the help identifier or value which refers to the to be shown help screen. 
  569.  Remove link
  570. Remove the current link between this command and an object? O
  571. Only the link is removed. To delete the object, go to the Objects dialog box. 
  572.  You're in Point mode now
  573.  Mouse users
  574.  -----------
  575.  Select an object by clicking on it.
  576.  Keyboard users
  577.  --------------
  578.  Select an object with the arrow or
  579.  Tab/Shift-Tab  keys and press Enter.
  580.  Welcome to PtGen's online tutorial
  581. PtGen's tutorials are intended to give you a quick start in operating PtGen. This part of the tutorial serves as an introduction to the most import concepts in PtGen. (
  582. WARNING: the tutorials are not bullet-proof and can easily be distorted by not doing exactly what you are asked to do. Pressing Help (F1) will not distort the tutorial. So if you do not know what PtGen is you can press Help (F1) now to learn more about PtGen. Then proceed to read this tutorial g
  583.  General guidelines for using PtGen's tutorials
  584. Constantly text will be displayed in the background to guide you through operating PtGen. The same applications as in the user's manual are created, and you will find more explanatory material there. (
  585. There are three tutorials. They cover: S
  586.  creating of statuslines
  587.  creating of menubars
  588.  creating of dialog boxes
  589.  General PtGen ideas/usages
  590. Everything in PtGen can be considered an object or an item. You apply operations on these objects/items by first selecting them. In PtGen several keys or mouse-buttons have a special meaning. They are: 
  591.  Mouse users
  592.  -----------
  593.    Leftbutton    select object/item or popup a local menu if you click
  594.                  on the background
  595.    Rightbutton   popup menu with actions you can apply to a object or
  596.                  item
  597.  Keyboard users
  598.  --------------
  599.    Alt-F5   Pop-up local position menu for
  600.             positioning the current object
  601.    Alt-F10  Pop-up local menu
  602.    Ctrl-F7  Delete current object/item
  603.    Ctrl-F8  Edit current object/item
  604.    Ctrl-F9  Link other objects to your object
  605.    Ins      Insert an item
  606.    Del      Delete an item
  607. OK, now you now enough to start with the first tutorial: creating of statuslines. Select Statusline from the Tutorial menu.                                                                                        
  608. Note: For every application (see the user's manual too) you have to create a separate directory and copy PREAPP.PAS to it. In the current directory are all PtGen created files saved. B
  609.   To create a new application: select New from the
  610.   File menu.
  611. After that you will be prompted to specify some parameters for this application.                                                                                                                                                                   
  612.  Enter as name for the application: SampleApp. Omit the preceding 'T'.
  613.    PtGen will add a 'T' to every name when creating a source file
  614.  Choose the English language
  615.  Enable the help option and enter as name for the helpfile: sample.txt.
  616.    Specify never the compiled (.HLP) version but the text file (.TXT)
  617.  That's it. Select OK to close this dialog box
  618. Press Edit (Ctrl-F8) or select Edit from the menubar to start editing your application. 
  619. Popup the local menu for your application by pressing Local Menu (Alt-F10) or clicking on the background with the left mouse button and holding that button down.                                                                                                                                                                                                                                     
  620. Choose statusline from this menu. 
  621. On the right side of the screen is now the statusline edit dialog box displayed. This dialog box represents the statusline. You can insert, edit or delete statusline definitions and items by pressing Ins, Ctrl-F8 and Delete respectively. 
  622. Press Tab to go to the Keys for the selected status definition, press the down arrow key and press Ins or click on the New button. 
  623. You can specify in this dialog box the same parameters as when calling the NewStatusKey function. f
  624.  Type after Text:
  625.      ~F2~ Save
  626.  Type after Keycode
  627.      kbF2
  628.  Type after Command
  629.      cmSave
  630. Next click on OK to close the dialog box. 
  631. If the ListBox is selected, you will see that the statusline has changed according to the information you specified. O
  632. Type now a F3 statusitem by pressing Ins again or clicking on the New button. 
  633. P.S. if you made a mistake in the previous statusitem, move the lightbar to that item and press Edit (Ctrl-F8) or click on Edit. 
  634.  Type after Text
  635.      ~F3~ Open
  636.  Type after Keycode
  637.      kbF3
  638.  Type after Command
  639.      cmOpen
  640. And select the OK button. 
  641. Type now the Alt-F3 statusitem by pressing Ins again or selecting the New button. 
  642.  Leave Text empty
  643.  Type after Keycode
  644.      kbAltF3
  645.  Type after Command
  646.      cmClose
  647. and select the OK button to close the dialog box. 
  648.                                                                                                                                                                                                                                                              
  649. If you look at the statusline you will see that the statusline has changed according to your input. 
  650. Select now the OK button to close the statusitem dialog box.                                                                                                                                                                                                  
  651. Exit now the application you created by pressing Exit (Alt-X).                                                                                                                                                                                                
  652. You have now finished creating your first application. But is has to be saved now in a pascal source file. PtGen is able to read that source file if you want to expand or change your application later on. 
  653. You are prompted to specify a filename as this application has not yet a filename. If that file already exists, PtGen prompts you if you want to replace it. The previous file is then saved as .BAK. 
  654. To save your application: B
  655.   Select Save from the File menu.                               
  656. Specify as filename: SAMPLE1 (PtGen will add the .PAS) and select OK. 
  657.                                                                                                                                                                                                                                                              
  658. This is the end of your first tutorial. You may either proceed with the second tutorial or do that a next time. 
  659. Close this window by clicking on the close icon.                                                                                                                                                                                                              
  660. Welcome to the second tutorial! 
  661. You are going to learn how to build your own menubar. You will do this by extending the application you saved after the first tutorial. 5
  662. Load that application by selecting Open from the File menu.                                                                                                                                                                                                                                                         
  663. Type as filename SAMPLE1 and select the OPEN button to load it                                                                                                                                                                                                
  664. Press Edit (Ctrl-F8) or select Edit from the menubar to start editting your application. 
  665.                                                                                                                                                                                                                                                              
  666. Press Menu (F10) to select the menubar                                                                                                                                                                                                                        
  667. You selected the system menu. But if you take a look at the statusline you will see that it remains the same. But in the TP60 IDE (disappeared from BP70) a helptext appeared. You want that too? 
  668. Press Edit (Ctrl-F8) to edit the system menu (no mouse equivalent).                                                                                                                                                                                           
  669. The menuitem dialog box has appeared. In this dialog box you can edit a menuitem's parameters. Except for helptext and window helptext the parameters are the same as for the NewItem function. !
  670. Enter in the helptext inputline 
  671.   system commands
  672. and select OK to close this dialog box.                                                                                                                                                                                                                       
  673. If you now look at the statusline, you will see that the statusline has changed and now shows the desired text. /
  674. Editing a menuitem is simple. Adding one too! P
  675. Place the lightbar on the End mark (
  676. ) symbol and press Ins to add a menuitem. 
  677.                                                                                                                                                                                                                                                              
  678. You will add the File menu, just like the one in Turbo IDE. y
  679.  Enter after Name
  680.      ~F~ile
  681.  Enter after Help text
  682.      File management
  683.      commands (Open,
  684.      New, Save, etc.)
  685. Leave the other fields empty and select OK to close this dialogbox. 
  686.                                                                                                                                                                                                                                                              
  687. The File menu has been added. Because you didn't specify a command, the File menu will contain a submenu. -
  688. Place the lightbar on File and press Enter. D
  689. An empty submenu will appear. Press Ins to insert the first menuitem of this submenu.                                                                                                                                                                                                                                              
  690.  Enter after Name
  691.      ~O~pen
  692.  After Command
  693.      cmOpen
  694.  After Keycode
  695.      kbF3
  696.  After Param
  697.      F3
  698. Skip hcConstant and R
  699.  enter after Help text
  700.      Locate and open a
  701.      file in an Edit
  702.      window
  703. Select OK to close this dialogbox.                                                                                                                                                                                                                            
  704. Exit now the application you created by selecting Exit from the statusline or by pressing Alt-X.                                                                                                                                                                                                                              
  705. You have now finished creating your second application. Save this application now by selecting  
  706.   Save as...
  707. from the File menu. If you had choosen Save you would have overwritten the code of the first tutorial.                                                                                                                                                                                                                               
  708. Specify as filename: SAMPLE2 and select OK to save your application. 
  709. This is the end of your second tutorial. You may either proceed with the third tutorial: creating dialogboxes or do that a next time. O
  710. **Bug in PtGen** Please exit and restart PtGen before going to third tutorial 
  711. You can close this window by clicking on the close icon.                                                                                                                                                                                                      
  712.  Welcome to the third tutorial
  713. You are going to learn how to create dialog boxes. You will do this by extending the application you saved after the second tutorial. )
  714. Load that application by selecting Open from the File menu.                                                                                                                                                                                                                                             
  715. Type as filename SAMPLE2 and select the OPEN button to load it                                                                                                                                                                                                
  716. Press Edit (Ctrl-F8) or select Edit from the menubar to start editing your application. 
  717.                                                                                                                                                                                                                                                              
  718. Press Menu (F10) to select the menubar                                                                                                                                                                                                                        
  719.  Press Enter to show the About menuitem, then
  720.    read on.
  721. You can "link" objects to menuitems. You will now link a dialog box object to the About menuitem. W
  722.  Press Link (Ctrl-F9) to pop-up a list of
  723.    objects you can link to this menuitem.
  724. There is no mouse equivalent to link objects.                                                                                                                                                                                                  
  725. There are two types of objects: predefined such as a calculator and user-defined. As you will define a dialog box, a user-defined object, 
  726.  select Define
  727. to pop up a list of objects which can be user-defined. %
  728.  From this list select Dialogbox.
  729. The dialog box settings dialog box appears in the upper right corner. You can specify a Name and a Title. You can also specify if you want a record to be created or if you want it to be centered. And full help text support of course. #
  730.  Enter after Name
  731.      AboutDlg
  732.  Enter after Title
  733.      About
  734.  Press OK to close the dialog box.
  735. You can place objects, like TStaticText or TButton, in the empty dialog box. 
  736.   Keyboard users:
  737. Pop up a list of objects you can place in this dialog box by pressing Local Menu (Alt-F10). 
  738.   Mouse users:
  739. Pop up a list of objects you can place in this dialog box by placing the mouse on the dialogbox background and pressing the left mouse button. The mouse location will form the upperleft corner of the view you select.                                                                       
  740. Select Static text from the pop-up.                                                                                                                                                                                                                           
  741. You are prompted to specify the static text. Enter the following text just as it appears. So enter for ^C first a "^" than a "C": #
  742.   ^CTurbo Pascal^M^M^CVersion 7.0
  743. and select the OK button.                                                                                                                                                                                                                                     
  744. You will now place an OK button in this dialog box. 
  745.   Keyboard users:
  746. Pop up the local menu to select an object by pressing Local Menu (Alt-F10). 
  747.   Mouse users:
  748. Pop up the local menu by placing the mouse on the dialog box background and pressing the left mouse button.                                                                                                                                                                                                                
  749. Select Button and next select OK to insert an OK button in this dialog box. 
  750.                                                                                                                                                                                                                                                              
  751. Press Enter or select the OK button to close this dialog box. 
  752.                                                                                                                                                                                                                                                              
  753. Press Alt-X to exit your application. 
  754.                                                                                                                                                                                                                                                              
  755. You have now finished creating your third application. We will save this one under a new name. *
  756.  Select Save as... from the File menu.
  757. Specify as filename: SAMPLE3 and select OK to save your application. 
  758.                                                                                                                                                                                                                                                              
  759. This is the end of your third and last tutorial! Congratulations! To become a real PtGen master I advise you to study the same tutorials in the User Manual too. The User Manual will offer more explanation and mention some more advanced concepts for which in this introductionary tutorial there was no room. 2
  760. Close this window by clicking on the close icon. 
  761.                                                                                                                                                
  762.  File
  763. Change Dir...
  764. Change Dir brings up the Change Directory dialog box, where you can specify a directory to make current. R
  765. The current directory is the one PtGen uses to save files and to look for files. 
  766.  File
  767. DOS Shell
  768. With the DOS Shell command, you can leave PtGen temporarily to perform a DOS command or enter another program. D
  769. To return to PtGen, type EXIT at the DOS prompt, then press Enter. 
  770.